package com.eastjet.maintenance.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.eastjet.maintenance.domain.Ledger;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * @author 杨博文
 * @description 针对表【ledger(设备台帐)】的数据库操作Service
 * @createDate 2024-11-25 09:23:38
 */
public interface LedgerService extends IService<Ledger> {

    /*
     * 插入备件台帐
     */
    @Transactional(rollbackFor = Exception.class)
    Boolean InsertLedger(Map<String, Object> map);

    /*
    修改备件台帐/删除备件台帐
     */
    @Transactional(rollbackFor = Exception.class)
    Boolean UpdateLedger(List<Ledger> ledger);

    /*
    删除备件台帐
     */
    @Transactional(rollbackFor = Exception.class)
    Boolean DeleteLedger(List<String> ledgerId);

    /*
     * 查询备件台帐
     */
    List<Ledger> SelectLedger(Ledger ledger);
}
